# $Id: PKGBUILD 64665 2012-02-17 14:06:15Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=dnstracer
pkgver=1.9
pkgrel=4
pkgdesc='Determines where a given DNS server gets its information from, and follows the chain of DNS servers'
url='http://www.mavetju.org/unix/dnstracer.php'
license=('custom:BSD')
arch=('i686' 'x86_64')
source=("http://www.mavetju.org/download/${pkgname}-${pkgver}.tar.gz")
sha1sums=('b8c60b281c0eb309acd1b1551c51cccb951685c7')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure --prefix=/usr --mandir=/usr/share/man
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/dnstracer/LICENSE
}
